package com.kx.center.service;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import com.kx.center.entity.Channel;
import com.kx.center.entity.ScTrade;
import com.kx.center.entity.Trade;
import com.kx.center.entity.huiyin.Merchant;
import com.kx.center.entity.huiyin.MtOrder;
import com.kx.center.entity.huiyin.PayTranLog;
import com.kx.center.entity.huiyin.SaleOrder;
import com.kx.center.entity.huiyin.SaleOrderPay;
import com.kx.center.entity.huiyin.TradePoi;
import com.kx.center.entity.query.QueryResult;
import com.kx.center.entity.query.QueryTrade;

public interface TradeService {
	
	public void insertMtOrder(MtOrder mtOrder);
	public void insertSaleOrder(SaleOrder saleOrder);
	public void insertSaleOrderPay(SaleOrderPay saleOrderPay);
	public void insertMerchant(Merchant merchant);
	public void insertPayTranLog(PayTranLog payTranLog);
	public void updateMerchant(Merchant merchant);
	public void insertTrade(Trade trade);
	public List<TradePoi> findTradeList(QueryTrade queryTrade);
	public List<Map<String, Object>> createExcelRecord(List<TradePoi> tradePoi);
	public Long saleOrderMaxTime();
	public Long saleOrderPayMaxTime();
	public List<String> findMerchantIdList();
	public Long payTranLogMaxTime();
	public List<String> findTradeIdList();
	public List<Trade> findTradeListTwo();
	public List<Trade> findMtOrderList();
	
	//此处写订单汇总
	public void mtSaveScTrade(HashMap<String, Object> data);
	public void elmSaveScTrade(String data);
	public void updateScTradeState(ScTrade scTrade);
	public QueryResult queryTrade(QueryTrade queryTrade);
	public String getTradeJson(Integer storeId);
	public ScTrade findScTradeById(Integer channelId,Long outerId);
	public Channel findKeyById(Long id);
	public Channel findSecretByKey(Long id);
	public void updateStatus();
	
}
